package test;

import entity.Pet;
import org.junit.jupiter.api.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import service.PetService;

public class Main {
    @Test
    public void test1(){
        ApplicationContext context = new
                ClassPathXmlApplicationContext("applicationContext.xml");
        PetService petService = (PetService) context.getBean("petService");
        petService.save(new Pet());
    }
}
